package com.lvy.hczn.front.system.domain.business;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 温区
 *
 * @author yw
 * @date 2022-04-01 16:48:40
 **/
@Data
@TableName("temperature_zone")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "温区管理")
public class TemperatureZone extends BaseModel<TemperatureZone> {

    @ApiModelProperty("温区编号，对应wcs温区")
    private String temperatureZoneCode;

    @ApiModelProperty("温区名")
    private String name;

    @ApiModelProperty("最高温")
    private Integer maxTemperature;

    @ApiModelProperty("最低温")
    private Integer lowTemperature;

    @ApiModelProperty("行宽")
    private Integer totalRow;

    @ApiModelProperty("起始行")
    private Integer startRow;

    @ApiModelProperty("起始列")
    private Integer startColumn;

    @ApiModelProperty("列宽")
    private Integer totalColumn;

    @ApiModelProperty("仓库")
    private String warehouseId;

    @ApiModelProperty("是否生成货位(0:否,1:是)")
    private Integer isAssignLocation;

    /**
     * 状态 1启用 0禁用, -1删除
     */
    @ApiModelProperty(value = "状态 1启用 0禁用, -1删除")
    private Integer status;

    @ApiModelProperty(value = "仓库温区总库位")
    private BigDecimal temperAreaVolume;

//    @ApiModelProperty(value = "库位类型，1增加, 2减少")
//    private int storageType;

    @ApiModelProperty(value = "库位类型，false:增加, true:减少")
    @TableField(exist = false)
    private boolean subtract;
}
